diff options
| author | Adam Soltys <[email protected]> | 2024-10-10 16:05:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-10 16:05:58 -0700 |
| commit | d8531773ea37858fef3adee5f917256c9c2cb492 (patch) | |
| tree | d0e8d17fed2524f8928e3706fcaff7951cfd310f /src/routes/(app)/[username]/(profile)/+layout.server.ts | |
| parent | 8dfd92dfeaebb6b736f986806fa7512c8db2b182 (diff) | |
| download | coinos-ui-d8531773ea37858fef3adee5f917256c9c2cb492.tar.gz coinos-ui-d8531773ea37858fef3adee5f917256c9c2cb492.zip | |
follow counts
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index bf499fb1..9ad95fa6 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -5,10 +5,8 @@ export async function load({ depends, parent }) { let { subject, user } = await parent(); - let count = get(`/${subject.pubkey}/count`).catch(() => 0); - let follows = get(`/${subject.pubkey}/follows`).catch(() => []); - let followers = get(`/${subject.pubkey}/followers`).catch(() => []); + let { follows, followers } = await get(`/${subject.pubkey}/count`); let followList = get(`/${user.pubkey}/follows?tagsonly=true`).catch(() => []); - return { count, follows, followers, followList }; + return { follows, followers, followList }; } |
